package com.cy.store2.controller;

import com.cy.store2.entity.User;
import com.cy.store2.service.IUserService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.annotation.Resource;

@Controller
public class UserController {

    @Resource
    IUserService iUserService;

    @RequestMapping("/users/reg")
    public String reg(User user){
        Integer insert = iUserService.insert(user);
        return "register";
    }
}
